home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
7_10.lha
/
7_10
/
po_alert.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
649b
|
27 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
include <process.h>
include <debug.h> /* DELETE */
/ schedule idle remembered processes
/ and flush out the memory
oid process_object::alert()
if (debug) /*DELETE*/ cerr << "process_object" << this << "::alert()\n";
for (process_link **lp = &po_link; *lp; )
{
process_link *sv = *lp;
*lp = sv->pl_next;
process *tp = sv->pl_process;
if (tp->t_curstate == TASK_IDLE)
tp->wakeup(0);
delete sv;
}
po_link = 0;
if (debug) /*DELETE*/ cerr << "<<<< process_object" << this << "::alert()\n";